<template>
  <el-card style="margin-top: 20px;">
    <div slot="header">
      <span>代码片段</span>
    </div>
    <el-button @click="addSnippet">添加</el-button>
  </el-card>
</template>

<script>
export default {
  props: ['projectId'],
  methods: {
    addSnippet() {
      // 实现代码片段管理
    }
  }
}
</script>